package DP.abstractFactory.nvwa;

import DP.abstractFactory.nvwa.factory.AbstractHumanFactory;
import DP.abstractFactory.nvwa.factory.impl.FemaleHumanFactory;
import DP.abstractFactory.nvwa.factory.impl.MaleHumanFactory;

/**
 * @author msi
 * 女娲造人的测试类
 */
public class NvWaTest {
    public static void main(String[] args) {
        AbstractHumanFactory femaleHumanFactory = new FemaleHumanFactory();
        AbstractHumanFactory maleHumanFactory = new MaleHumanFactory();
        femaleHumanFactory.createChineseHuman().getSex();
        femaleHumanFactory.createJapaneseHuman().getSex();
        femaleHumanFactory.createKoreanHuman().getSex();
        maleHumanFactory.createKoreanHuman().getSex();
        maleHumanFactory.createJapaneseHuman().getSex();
        maleHumanFactory.createChineseHuman().getSex();
    }
}
